<% content_for :thredded_page_title, t('thredded.nav.moderation') %>
<% content_for :thredded_page_id, 'thredded--moderation-activity' %>
<%= render 'nav' %>

<%= thredded_page do %>
  <section class="thredded--main-section">
    <h1><%= t 'thredded.recent_activity' %></h1>
    <% if @last_moderated_record %>
      <div class="thredded--moderated-notice">
        <%= render_post_moderation_records([@last_moderated_record]) %>
      </div>
    <% end %>
    <% if @posts.present? %>
      <%= render_posts @posts,
                       partial: 'thredded/moderation/post',
                       content_partial: 'thredded/posts/content' %>
      <%= paginate @posts %>
    <% end %>
  </section>
<% end %>
